{extend name="common/adminBase" /}
{block name="body"}
<body>
<style>
    .r{
        float: right;
    }
    .layui-form-select .layui-input{
        width:180px;
    }
</style>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                        <form class="layui-form layui-col-space5">
                                <div class="layui-inline layui-show-xs-block">
                                    <select name="status" >
                                        <option value="">选择状态</option>
                                        <option value="-1">待完善</option>
                                        {if $cate=='普通高校、高职院校'||$cate=='直属校'}
                                            <option value="1">学校待审核</option>
                                            <option value="2">学校驳回</option>
                                        {/if}
                                        {if $cate=='其他中小学/中职/特教学校'}
                                            <option value="4">区教育局待审核</option>
                                            <option value="5">区教育局驳回</option>
                                        {/if}
                                        <option value="6">审核通过</option>
                                        <option value="7">中心审核驳回</option>
                                        <option value="3">市中心待审核</option>
                                    </select>
                                </div>
                                <div class="layui-inline layui-show-xs-block">
                                    <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
                                </div>
                            </form>
                </div>

                <div class="layui-card-body layui-table-body layui-table-main">
                    <table class="layui-table layui-form">
                        <thead>
                        <tr>
                            <th>ID</th>
                            <th>申请课题</th>
                            <th>项目级别</th>
                            {volist name="title" id="v"}
                            <th>{$v}</th>
                            {/volist}
                            <th>提交时间</th>
                            <th>备注</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        {volist name="data" id="v"}
                        <tr>
                            <td>{$v.id}</td>
                            <td>{$v.name}</td>
                            <td>{$v.if_inportant}</td>
                            {volist name="$v.statusdes" id="m" key="kk"}
                                <td>{$m}</td>
                            {/volist}
                            <td>{$v.time|date='Y-m-d H:i:s'}</td>
                            <td>{$v.message|raw}</td>
                            <td class="td-manage">
                            {if $v.status==-1}
                              <a class="layui-btn" href="/index/keti/edit?id={$v.id}">编辑</a>
                            {/if}
                            <a class="layui-btn" href="/index/keti/chakan?id={$v.id}">查看</a>
                            </td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                </div>
                <div class="layui-card-body ">
                    <div class="page">
                        <div>
                           <?php echo $page?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script>
    layui.use('form', function(){
        var  form = layui.form;
    });

    /*用户-停用*/
    function member_del(id){
        layer.confirm('确认要删除吗？',function(index){
            $.ajax({
                url:'delAdmin',
                data:{id:id},
                type:'post',
                dataType:'json',
                success:function (res) {
                    if (res.status ==1){
                        layer.msg(res.msg,{icon:1,time:1500},function () {
                            location.reload();
                        });
                    }else{
                        layer.alert(res.msg,function (index) {
                            layer.close(index);
                        })
                    }
                }
            })

        });
    }
    function shenqing_changestatus(id){
        $.ajax({
                url:'/index/keti/shenqing_changestatus',
                data:{id:id},
                type:'post',
                dataType:'json',
                success:function (res) {
                    if (res.status ==1){
                        layer.msg(res.msg,{icon:1,time:1500},function () {
                            location.reload();
                        });
                    }else{
                        layer.alert(res.msg,function (index) {
                            layer.close(index);
                        })
                    }
                }
            })
    }

</script>

{/block}